<?php

class music_style extends AppModel {

    var $alias = 'music_style';
    var $name = 'music_style';
    var $useTable = 'music_styles';

    function paginateCount($conditions = null, $recursive = 0, $extra = array()) {
        $parameters = compact('conditions');
        $this->recursive = $recursive;
        $count = $this->find('count', array_merge($parameters, $extra));
        if (isset($extra['group'])) {
            $count = $this->getAffectedRows();
        }
        return $count;
    }
    function getListAll() {
        $data = $this->find('list', array(
                    'fields' => 'music_style.id, music_style.title',
                ));
        return $data;
    }
}

?>
